
export const chartOptions = {
    responsive: true,
    scales: {
        y: {
            display: false,
        },
        x: {
            ticks: {
                font: {
                    size: 30,
                },
                color: 'black'
            }
        }
    },
    plugins: {
        legend: {
            position: 'top' as const,
            font: {
                size: 20,
            },
            display: false,
        },
        title: {
            display: true,
            text: '投票数量',
            font: {
                size: 20,
            },
            color: 'black'
        },
        datalabels: {
            font: {
                size: 100,
            },
            color: 'white',
            formatter: (value: number) => value.toString()
        }
    }
};

